import 'package:fish_redux/fish_redux.dart';

enum WebShareAction { action, progress, title, onDone, onShare, onSnap }

class WebShareActionCreator {
  static Action onAction() {
    return const Action(WebShareAction.action);
  }

  static Action progress(int count) {
    return Action(WebShareAction.progress, payload: count);
  }

  static Action title(String title) {
    return Action(WebShareAction.title, payload: title);
  }

  static Action onDone() {
    return const Action(WebShareAction.onDone);
  }

  static Action onShare() {
    return const Action(WebShareAction.onShare);
  }

  static Action onSnap() {
    return const Action(WebShareAction.onSnap);
  }
}
